/**
 * This class is the model for the status
 * @author Sravya
 *
 */
public class StatusModel 
{
	public enum Ration {NONE, BARE_BONES, MEAGER, NORMAL, WELL_FED}
	public enum Pace {STOPPED, LEISURELY, STEADY, GRUELING}
	
	private int currPace;
	private int currRation;
	private int currDistTravelled;
	/**
	 * This is the constructor for the status model
	 */
	public StatusModel()
	{
		currPace = 0;
		currRation = 0;
		currDistTravelled = 0;
	}
	/**
	 * This method updates the distance travelled
	 */
	public void updateDist()
	{
		currDistTravelled += (currPace * 30); 
	}
	/**
	 * This is the getter for the distance travelled
	 * @return
	 */
	public int getDistTravelled()
	{
		return currDistTravelled;
	}
	/**
	 * This is the setter for the distance travelled
	 * @param distTravelled
	 */
	public void setDistTravelled(int distTravelled)
	{
		currDistTravelled = distTravelled;	
	}
	/**
	 * This is the getter for the pace
	 * @return
	 */
	public String getPace()
	{
		return Pace.values()[currPace].toString();
	}
	/**
	 * This is the getter for the ration
	 * @return
	 */
	public String getRation()
	{
		return Ration.values()[currRation].toString();
	}
	/**
	 * This is the getter for the ration index
	 * @return
	 */
	public int getPaceIndex()
	{
		return currPace;
	}
	
	public int getRationIndex()
	{
		return currRation;
	}
	/**
	 * This is the setter for the ration
	 * @param currRation
	 */
	public void setRation(int currRation)
	{
		this.currRation = currRation;
	}
	/**
	 * This is the setter for the pace
	 * @param currPace
	 */
	public void setPace(int currPace)
	{
		this.currPace = currPace;
	}
}
